package com.java9s.goldchit.beans;

import java.util.Date;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.NotEmpty;

public class GoldRate {

	@NotNull
	private Date goldRateDate;
	private int goldRateId;
	@NotNull
	@DecimalMin("0.0")
	@DecimalMax("9999.99")
	private double twentyTwoKaratForGram;
	@NotNull
	@DecimalMin("0.0")
	@DecimalMax("9999.99")
	private double twentyFourKaratForGram;

	public Date getGoldRateDate() {
		return goldRateDate;
	}

	public void setGoldRateDate(Date goldRateDate) {
		this.goldRateDate = goldRateDate;
	}

	public int getGoldRateId() {
		return goldRateId;
	}

	public void setGoldRateId(int goldRateId) {
		this.goldRateId = goldRateId;
	}

	public double getTwentyTwoKaratForGram() {
		return twentyTwoKaratForGram;
	}

	public void setTwentyTwoKaratForGram(double twentyTwoKaratForGram) {
		this.twentyTwoKaratForGram = twentyTwoKaratForGram;
	}

	public double getTwentyFourKaratForGram() {
		return twentyFourKaratForGram;
	}

	public void setTwentyFourKaratForGram(double twentyFourKaratForGram) {
		this.twentyFourKaratForGram = twentyFourKaratForGram;
	}

	@Override
	public String toString() {
		return "GoldRate [goldRateDate=" + goldRateDate + ", goldRateId="
				+ goldRateId + ", twentyTwoKaratForGram="
				+ twentyTwoKaratForGram + ", twentyFourKaratForGram="
				+ twentyFourKaratForGram + "]";
	}

}
